<%@ attribute name="span" required="true"%>
<%@ attribute name="down" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
    if (getJspContext().getAttribute("down") == null) {
        request.setAttribute("cellprefix", "t");
    } else {
        request.setAttribute("cellprefix", "d");
    }
	request.setAttribute("colspan", (Integer.parseInt(getJspContext().getAttribute("span").toString()) - 2));

%>
<tr class=t>
	<th id="${cellprefix}f">&nbsp;</th>
	<th id="${cellprefix}" colspan="${colspan}"><jsp:doBody /></th>
	<th id="${cellprefix}l">&nbsp;</th>
</tr>